package cn.itrip.trade.sdk.wx;

import java.io.InputStream;

/**
 * @author Super God Jie
 * @version 1.0  2022-04-19 10:36
 */
public class MyVXPayConfig extends WXPayConfig {
	private String appId="";
	private String muchId="";
	private String key="";

	@Override
	public String getAppID() {
		return appId;
	}

	@Override
	public String getMchID() {
		return muchId;
	}

	@Override
	public String getKey() {
		return key;
	}

	@Override
	public InputStream getCertStream() {
		return null;
	}

	@Override
	public IWXPayDomain getWXPayDomain() {
		return new IWXPayDomain() {
			@Override
			public void report(String domain, long elapsedTimeMillis, Exception ex) {

			}

			@Override
			public DomainInfo getDomain(WXPayConfig config) {
				return new IWXPayDomain.DomainInfo(WXPayConstants.DOMAIN_API, true);
			}
		};
	}
}
